package ch.headshot.photomap.client.editor.view;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.Widget;

public class Application extends Composite {

	public Application() {
		DockPanel rootPanel = new DockPanel();
		rootPanel.add(getMenu(), DockPanel.NORTH);
		rootPanel.add(getStructure(), DockPanel.WEST);
		rootPanel.add(getMap(), DockPanel.CENTER);
		initWidget(rootPanel);
	}

	private Widget getMenu() {
		return new Menu();
	}

	private GpxStructure getStructure() {
		return GpxStructure.getInstance();
	}

	private Map getMap() {
		return Map.getInstance();
	}

}
